package cn.gson.crm.model.dao;

import cn.gson.crm.model.pojos.SpecifValue;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.transaction.annotation.Transactional;

public interface SpecificationvalueDao extends CrudRepository<SpecifValue,Integer> {
    @Transactional
    @Modifying(clearAutomatically = true)
    @Query(nativeQuery = true,value = "DELETE SPECIFVALUE where ggz_id=?1")
    public void shan(Integer ggzId);
}
